package cn.powerone.scm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 供应商联系人对象 scm_supplier_contacts
 * 
 * @author PowerOne
 * @date 2025-06-23
 */
public class ScmSupplierContacts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 供应商ID */
//    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 供应商编号 仅仅为上传和下载使用*/
    @Excel(name = "供应商编号")
    private String supplierNo;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机 */
    @Excel(name = "手机")
    private String mobile;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 电话 */
//    @Excel(name = "电话")
    private String telephone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 微信号 */
    @Excel(name = "微信号")
    private String wechat;

    /** 是否关键决策人1是0不是-1未知 */
    @Excel(name = "关键决策人", dictType = "scm_decision_ind")
    private Integer decisionInd;

    /** 职务 */
    @Excel(name = "职务")
    private String post;

    /** 性别0女1男-1未知 */
    @Excel(name = "性别", readConverterExp = "1=女,0=男,-1=未知")
    private Integer sex;

    /** 负责人ID */
//    @Excel(name = "负责人ID")
    private Long ownerUserId;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String ownerUserName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setWechat(String wechat) 
    {
        this.wechat = wechat;
    }

    public String getWechat() 
    {
        return wechat;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setDecisionInd(Integer decisionInd)
    {
        this.decisionInd = decisionInd;
    }

    public Integer getDecisionInd()
    {
        return decisionInd;
    }
    public void setPost(String post) 
    {
        this.post = post;
    }

    public String getPost() 
    {
        return post;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setOwnerUserId(Long ownerUserId) 
    {
        this.ownerUserId = ownerUserId;
    }

    public Long getOwnerUserId() 
    {
        return ownerUserId;
    }
    public void setOwnerUserName(String ownerUserName) 
    {
        this.ownerUserName = ownerUserName;
    }

    public String getOwnerUserName() 
    {
        return ownerUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supplierId", getSupplierId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("birthday", getBirthday())
            .append("telephone", getTelephone())
            .append("wechat", getWechat())
            .append("email", getEmail())
            .append("decisionInd", getDecisionInd())
            .append("post", getPost())
            .append("sex", getSex())
            .append("ownerUserId", getOwnerUserId())
            .append("ownerUserName", getOwnerUserName())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getSupplierNo() {
        return supplierNo;
    }

    public void setSupplierNo(String supplierNo) {
        this.supplierNo = supplierNo;
    }
}
